package com.middlegroup.pay.mapper;

import com.middlegroup.pay.entity.OutNotifyMerchant;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 出款通知商户记录表，bill_no记录唯一 Mapper 接口
 * </p>
 *
 * @author pc123
 * @since 2019-01-15
 */
public interface OutNotifyMerchantMapper extends BaseMapper<OutNotifyMerchant> {

    /**根据billNo更新notifyTimes
     * @param billNo
     * @return
     */
    @Update("update t_out_notify_merchant set notify_times=notify_times+1 where bill_no=#{billNo}")
    int updateTimes(@Param("billNo") String billNo);
}
